<%@ page language="java" contentType="text/html; charset=UTF-8"
		 pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<title></title>
	<%@ include file="/common/query.jsp"%>
	<%@ include file="/common/det.jsp"%>
	<script>
        $(function(){
            init();
        });
        function init(){
            var setting = {};
            var url ="";
            var p_insert = false;
            var p_del = false;
            var selectView = getQueryStringByDecode("selectView");

            var add = true;
            var edit = true;
            var del = true;
			var searchBarHidden = false;
            if(selectView!=null && selectView=="true"){
                add = false;
                edit = false;
                del = false;
                searchBarHidden  = true;
			}



			crudDialogWidth = 300;
            var columns = [
                {field:'id',title:'id',hidden:true},
                {field:'pid',title:'pid',hidden:true},
                {field:'name',title:'名称',require:true,search:{type:"single"}},
                {field:'enName',title:'英文名称',rowHidden:true},
                {field:'code',title:'编号',require:true,search:{type:"single"},rowHidden:true},
                {field:'startValue',title:'开始成长值',rowHidden:true},
                {field:'endValue',title:'结束成长值',rowHidden:true},
                {field:'orderBy',title:'排序',rowHidden:true},
                {field:'isOfficial',title:'是否正式',search:{type:"single"},
                    input:{type:'radio',value : [{text:"否",value:0,isDefault:true},{text:'是',value:1}]}
                },
                {field:'recStatus',title:'记录状态',type:"number",rowHidden:true}

            ];

            var tree = {
                pid:'pid',
                id : 'id',
                tpid:'0',
                treeField:'name',
                sort:'xuhao'
            };
            url='/member/grade/manager?';
            createQuery('body',columns,{searchBar:{hidden:searchBarHidden},pager:false,edit:edit,editBtn:edit,add:add,del:del,heji:false,singleSelect:true},url);
        };
	</script>
</head>
<body>
<div id="body"></div>
</body>
</html>